﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using FireBillBook.Core.Models;
using FireBillBook.Core.Dtos;
using FireBillBook.Core.Models.QueryContexts;
using FireBillBook.Core.Entities;

namespace FireBillBook.Core.Repos
{
    public interface IConsumptionRecordRepo
    {
        Task<PagingModel<ConsumptionRecordDto>> ListAsyc(ConsumptionRecordListQueryContext queryContext, bool includeDeleted);

        Task SaveAsync(ConsumptionRecordDto record);

        Task DeleteAsync(int id);

        Task<ConsumptionRecord> GetByIdAsync(int id, bool includeDeleted);
    }
}
